package http

import (
	"context"

	"github.com/gin-gonic/gin"
)

type IHttpServer interface {
	Use(middleware ...gin.HandlerFunc) IHttpServer
	Router(paths string, hdls ...gin.HandlerFunc) *gin.RouterGroup

	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}
